$OpenBSD: patch-libatomic_Makefile_in,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
--- libatomic/Makefile.in.orig	Sun Dec  1 23:39:57 2013
+++ libatomic/Makefile.in	Tue Dec  3 08:51:23 2013
@@ -272,6 +272,8 @@ gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-V
 search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) \
 	$(top_srcdir) $(top_builddir)
 
+include $(top_srcdir)/../libversions
+
 DEFAULT_INCLUDES = $(addprefix -I, $(search_path))
 AM_CFLAGS = $(XCFLAGS)
 AM_CCASFLAGS = $(XCFLAGS)
@@ -284,7 +286,7 @@ noinst_LTLIBRARIES = libatomic_convenience.la
 @LIBAT_BUILD_VERSIONED_SHLIB_FALSE@libatomic_version_dep = 
 @LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libatomic_version_dep = $(top_srcdir)/libatomic.map
 @LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libatomic_version_dep = libatomic.map-sun
-libatomic_version_info = -version-info $(libtool_VERSION)
+libatomic_version_info = $(LIBatomic_LTVERSION)
 libatomic_la_LDFLAGS = $(libatomic_version_info) $(libatomic_version_script)
 libatomic_la_SOURCES = gload.c gstore.c gcas.c gexch.c glfree.c lock.c init.c \
 	fenv.c
